#define _CRT_SECURE_NO_WARNINGS 1
#include <cmath>
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include<math.h>
#include<stdlib.h>
#include<stdio.h>
#include<unordered_map>
#include<queue>
using namespace std;

class Solution {
public:
    bool CheckPermutation(string s1, string s2) {
        if (s1.size() != s2.size()) return false;
        int hash[30] = { 0 };
        for (auto& ch : s1)
            hash[ch - 'a']++;
        for (auto& ch : s2)
        {
            if (hash[ch - 'a'] == 0) return false;
            hash[ch - 'a']--;
        }
        return true;
    }
};

int main() {
    return 0;
}